<?php 
include_once('connection/connection.php');
include('header.php');
include('menu.php');
include('config.php');

/*if(isset($_POST['submit']))
{ 
	$distId=$_POST['district'];
	$_SESSION['dist_id']=$distId;
	header('Location: water_quality1.php');
}*/	
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="css/style_question.css" type="text/css" rel="stylesheet" />
<script language="Javascript" type="text/javascript" src="js/water_quality_ajax.js"></script>
<!--<script language="javascript" type="text/javascript" src="js/validate.js"></script>-->
<!--<script language="Javascript" type="text/javascript" src="q3_ajax_report.js"></script>-->
<script language="javascript" type="text/javascript">
function validate()
{
	valid = true;
	if (document.view_main_q1.district.selectedIndex == 0)
    {
        alert ( "Please select District Name" );
        valid = false;
    }
	if (document.view_main_q1.form_id.selectedIndex == 0)
    {
        alert ( "Please select Form Id" );
        valid = false;
    }
	return valid;
}	
</script>
<title>View main</title>
</head>
<body>
<div align="center">
<form action="" method="post" enctype="multipart/form-data" onSubmit="return validate()" name="view_main_q1">
	<table border="0" width="746" id="table1" cellspacing="0" cellpadding="0">
	<tr bgcolor="FF9966">
		<td height="29" align="left" valign="top" bgcolor="#FF9966" colspan="16">&nbsp;</td>
	</tr>
	<tr>
	<td bgcolor="#E5E5E5" align="center" colspan="16">
	<span lang="en-us">&nbsp;</span><span lang="en-us" style="font-size: 8.5pt"><font face="Verdana" color="#006699"><b>Download Questionnaire3 Table for GIS</b></font></span></td>
</tr>
<tr><td bgcolor="#E5E5E5" align="left" colspan="16">&nbsp;</td>
</tr>
<tr><td align="left" colspan="16">&nbsp;</td>
</tr>
		<tr align="center">
			<td width="326" height="27" align="right">
					<font face="Verdana" style="font-size: 9pt" color="#000000">&nbsp;District&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></td>
			<td align="left" colspan="15"><font id=district>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<select name="district" id="district" class="txt">
				<option value="0">=================</option>
<?php
/*$qry="select DISTINCT district_id, district_name from tbl_lookup_location order by district_name";
//echo $qry;
$result=mysql_query($qry);
while(list($id, $name)=mysql_fetch_array($result))
{
    ?><option value="<?php echo $id ?>"><?php echo $name; ?></option>
	<?php
}*/  
?>
				
        		</select></font><span id="districtLoader"></span>
	  	  </td>
			<!--<td width="133"><font style="font-size: 8.5pt" face="Verdana" color="#000000">Form Id</font></td>
			<td width="246"><font id="form_id">
		  	<select name="form_id" id="form_id" class="txt">
				<option value="0">==Select form_id==</option>
        	</select></font><span id="formLoader"></span></td>-->
		</tr>
		<tr>
			<td colspan="16">&nbsp;</td>
		</tr>
		<tr>
			<td colspan="16">&nbsp;</td>
		</tr>
		<tr>
			<td colspan="16">
			<p align="center">
			<div id="show"><input type="submit" value="Submit" name="submit" style="border:1px solid #000000; font-size: 8pt; font-family: Verdana; " disabled="disabled"></div></p>
			</td>
		</tr>
		<tr>
			<td colspan="16"><div id="showDiv"></div></td>
		</tr>
		
	
</form>
</div>
</body>
</html>
